package com.lancoo.cvas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 课程禁排
 *
 * @author liufeng
 * @email 1037383243@qq.com
 * @date 2023-12-04 11:54:00
 */
@Data
@TableName("rule_course_prohibit")
@Accessors(chain = true)
@ApiModel("课程规则时间")
public class RuleCourseProhibit implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 课程禁排id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;


    @ApiModelProperty("课程规则id")
    private Integer ruleId;
    /**
     * 任务id
     */
    @ApiModelProperty("任务id")
    private Integer taskId;
    /**
     * 课程id
     */
    @ApiModelProperty("课程id")
    private Long courseId;
    /**
     *
     */
    @ApiModelProperty("课时编码")
    private String timeCode;
    /**
     * 学校id
     */
    @ApiModelProperty("学校id")
    private String schoolId;
    /**
     * 0：尽量排(优先排)；1：固排（一定排）；2：禁排
     */
    @ApiModelProperty(" 0：尽量排(优先排)；1：固排（一定排）；2：禁排")
    private Integer flag;
    /**
     * 删除标识：
     * 0：未删除
     * 1：删除
     */
    @ApiModelProperty("删除标识")
    private Integer deleted;
    /**
     *
     */
    @ApiModelProperty("固排分组")
    private String reserve;


    @TableField(exist = false)
    @ApiModelProperty("课程名称")
    private String courseName;

    @TableField(exist = false)
    @ApiModelProperty("课程禁排年级专业")
    private List<RuleCourseProhibitMajor> majors;


}
